package com.software.graduationproject.commons.log;

import com.software.graduationproject.commons.enums.LogType;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Log
 * ---------------------------------------------------------------------------------------------------------------------
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LogDto {

    @ApiModelProperty(value = "用户编码")
    private String userCode;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "请求IP")
    private String requestIp;

    @ApiModelProperty(value = "请求URL")
    private String requestUrl;

    @ApiModelProperty(value = "请求功能")
    private String requestAction;

    @ApiModelProperty(value = "请求方式")
    private String requestMethod;

    @ApiModelProperty(value = "请求参数")
    private String requestParams;

    @ApiModelProperty(value = "响应时间")
    private Long responseTime;

    @ApiModelProperty(value = "响应状态码")
    private Integer responseStatus;

    @ApiModelProperty(value = "终端设备")
    private String clientDevice;

    @ApiModelProperty(value = "终端平台")
    private String clientPlatform;

    @ApiModelProperty(value = "客户端系统")
    private String clientSystem;

    @ApiModelProperty(value = "终端程序")
    private String clientProgram;

    @ApiModelProperty(value = "终端厂商")
    private String clientVendor;

    @ApiModelProperty(value = "登录类型")
    private LogType logType;

}